<% for event in @core.events 
	colors = event.colors.split(',')%>	
<% for c in colors %> 
<div style="border-right:<%= (6 / colors.size).to_s %>px solid <%= c %>">
<% end %>
<a href="/<%= event.alias %>">
<div class="link_gray_ani">
	<div class="core_place_when"  <%= "style='margin-top:0;'" if event == @core.events.first %>>	
		<p class="core_place_date"><%= event.date_end > event.date ? 
			"from <span class='core_event_date'>#{I18n.l(event.date, :format => :with_day_name)}</span>" + 
			" to <span class='core_event_date'>#{I18n.l(event.date_end, :format => :with_day_name)}</span>" : 
			"<span class='core_event_date'>#{I18n.l(event.date, :format => :super_long)}</span>" %></p>
		<% unless event.days_of_week.blank? %>
			<div class="separator"><span></span></div>
			<p>every <% days = ""; event.days_of_week.split(",").each {|i| days +=  I18n.t('date.day_names')[i.to_i].downcase  + ", " if (i!="") } %>
			<%= days[0,days.length - 2] %></p>
		<% end %>
		<div class="separator"><span></span></div>
	</div>
	<div class="core_event_place">
		<div class="core_event_place_left">			
			<p class="core_place_event_name"><%= event.place.name %></p>					
		</div>	
		<div class="separator"><span></span></div>
	</div>
</div>
</a>
<% for c in colors %></div><% end %> 
<% end %>


<% unless @core.description.blank? %>
	<div id="core_description_div" <%= "style=\"margin-top:0;\"" if @core.events.size == 0%>><%= @core.description %></div>
<% end %>